<meta charset="UTF-8">
<?php
  $yhendus=new mysqli("localhost", "if13", "ifikad", "if13_keaty_e");
  $kask=$yhendus->prepare("SELECT id, kassinimi, toon FROM kassid");
  $kask->bind_result($id, $kassinimi, $toon);
  $kask->execute();
?>
<!doctype html>
<html>
  <head>
     <title>Kassid</title>
  </head>
  <body>
     <h1 style="color: red">Siit tulevad kassid värvilises järjekorras</h1>
     <?php
       while($kask->fetch()){
         echo "<h2 style=color:".htmlspecialchars($toon).">".htmlspecialchars($kassinimi)."</h2>";
       }
     ?>
	 Keaty vaatas kasse.
  </body>
</html>
<?php
  $yhendus->close();
?>